<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>物品外借登记管理</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet"
			href="<%=request.getContextPath()%>/css/common.css" type="text/css" />
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/sorttable.js'></script>
			
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/jquery-latest.pack.js'></script>			
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/noConflictOfJquery.js'></script>
		<script type='text/javascript'
			src='<%=request.getContextPath()%>/js/forCSS.js'></script>
		<script type='text/javascript'>
			$j(function(){
				tbCSS();
			})
		</script>
	</head>

	<body>
		<div id="page_container">


			<h2>
				物品外借登记管理
			</h2>
			<table class="sortable table_common table_list_style"  rowclass="row_odd,row_even" width="600px">
				<thead>
					<tr>
						<th>
							学生学号
						</th>
						<th>
							物品类型
						</th>
						<th>
							借出时间
						</th>
						<th>
							归还时间
						</th>
						<th>
							操作人
						</th>
						<th>
							归还
						</th>
						<th>
							详情
						</th>
						<th>
							删除
						</th>

					</tr>
				</thead>
				<tbody>
						<s:iterator value="rl" status="st"><s:hidden name="registerinfoid" /><s:hidden value="registerinfoind" /><s:if test="#st.odd==true"><tr class="row_odd">
							</s:if>
							<s:else>
								<tr class="row_even">
							</s:else>
							<td>
								<s:property value="registuserstudentno" />
							</td>
							<td>
								<s:property value="registerinfotype.registerinfotypename" />
							</td>
							<td>
								<s:date name="registerinfotime" format="yyyy-MM-dd hh:mm" />
							</td>
							<td>
								<s:date name="registereturntime" format="yyyy-MM-dd hh:mm" />
							</td>
							<td>
								<s:property value="registerinforecordedby" />
							</td>
							<td>
								<a
									href="registerinfo/setreturnregisterinfobyid.action?registerinfoid=${registerinfoid}">归还</a>
							</td>
							<td>
								<a
									href="registerinfo/getregisterinfobyid.action?registerinfoid=${registerinfoid}"><img
										src="<%=request.getContextPath()%>/images/114.gif" /> </a>
							</td>
							<td>
								<a
									href="registerinfo/deleteregisterinfo.action?registerinfoid=${registerinfoid}"
									onclick="javascript: return window.confirm('确定删除吗?')"><img
										src="<%=request.getContextPath()%>/images/083.gif" /> </a>
							</td>

						</s:iterator>
				</tbody>
			</table>
			<div class="navigator">
				共
				<s:property value="totalRows" />
				条&nbsp; 第
				<s:property value="currentPage" />
				页&nbsp; 共
				<s:property value="pager.getTotalPages()" />
				页&nbsp;
				<a
					href="<s:url value="/registerinfo/listallregisterinfo.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'first'"/>
       
      </s:url>">首页</a>
				<a
					href="<s:url value="/registerinfo/listallregisterinfo.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'previous'"/>
      </s:url>">上一页</a>
				<a
					href="<s:url value="/registerinfo/listallregisterinfo.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'next'"/>
      </s:url>">下一页</a>
				<a
					href="<s:url value="/registerinfo/listallregisterinfo.action">
       <s:param name="currentPage" value="currentPage"/>
       <s:param name="pagerMethod" value="'last'"/>
      </s:url>">尾页</a>

			</div>
		</div>
	</body>
</html>